class Tablero:
	def __init__(self):
		self.__tablero=[["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"],["Libre","Libre","Libre","Libre","Libre","Libre","Libre","Libre"]]
					
	def getTablero(self):
		indice=7
		while indice < 8 and indice > -1:
			print str(indice+1)+" "+str(self.__tablero[indice])
			indice=indice-1
		print "      a        b        c        d        e        f        g        h"

	def agregarPieza(self, pieza):
		self.__tablero[pieza.traducirFila()][pieza.traducirColumna()]=pieza.getNombre()+" "+pieza.getTipo()

class Pieza:
	def __init__(self, fila, columna, nombre, tipo):
		self.__fila=fila
		self.__columna=columna
		self.__nombre=nombre
		self.__tipo=tipo
		
	def getFila(self):
		return self.__fila
		
	def getColumna(self):
		return self.__columna
		
	def getNombre(self):
		return self.__nombre
		
	def getTipo(self):
		return self.__tipo
		
	def moverPieza(self, fila, columna):
		pass
		
	def traducirFila(self):
		return self.__fila-1
			
	def traducirColumna(self):
		indice=0
		traducir=0
		columna=["a","b","c","d","e","f","g","h"]
		for indice in range (8):
			if columna[indice]==self.__columna:
				traducir=indice
			else:
				indice=indice+1
		return traducir
		
		
class Peon(Pieza):
	def __init__(self, fila, columna, nombre, tipo):
		Pieza.__init__(self, fila, columna, nombre, tipo)
		self.__fueMovido=False
		
	#def moverPieza(self, fila, columna):
		


		
t=Tablero()
p=Peon(2,"c","peon","b")

t.agregarPieza(p)

t.getTablero()
